window.addEventListener("DOMContentLoaded", () => {
  // 获取按钮元素
  document.getElementById("end-control")?.addEventListener("click", (event) => {
    socket.emit("remoteClose", {
      conversationId,
    });
    setTimeout(() => {
      ipcRenderer.send("close");
    }, 1000);
  });
});
